import { httpUrl, pageSize } from 'api/config'
import { ajax } from 'api/axios'

export const getList = (page) => {
  const url = `${httpUrl}/admin/notice/list`

  const data = {
    page,
    pageSize
  }

  return ajax(url, data)
}

export const delList = (ids) => {
  const url = `${httpUrl}/admin/notice/delSelect`

  const data = {
    ids
  }

  return ajax(url, data)
}

export const sendDetail = (ids) => {
  const url = `${httpUrl}/admin/notice/sendMessage`

  const data = {
    ids
  }

  return ajax(url, data)
}
